#include <stdio.h>
#include <stdlib.h>

#include "klist.h"

/************************************************************************/
/*                                                                      */
/************************************************************************/
#define __int_free(x)
KLIST_INIT(32, int, __int_free)

/************************************************************************/
/*                                                                      */
/************************************************************************/

int main(int argc, char* argv[])
{
    klist_t(32) *kl;
    kliter_t(32) *p;
    kl = kl_init(32);
    *kl_pushp(32, kl) = 1;
    *kl_pushp(32, kl) = 10;
    kl_shift(32, kl, 0);
    for (p = kl_begin(kl); p != kl_end(kl); p = kl_next(p))
        printf("%d\n", kl_val(p));
    kl_destroy(32, kl);
    
    return 0;
}